
package com.craterhill.java.ems.web.authenticator;

import java.util.List;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import com.craterhill.java.ems.common.beans.Staff;

public class CHTCAuthenticatorToken extends UsernamePasswordAuthenticationToken {

	private static final long serialVersionUID = 1L;

	private int userId;
	private Staff loggedStaff;

	public CHTCAuthenticatorToken(Object principal, Object credentials) {
		super(principal, credentials);
	}

	public CHTCAuthenticatorToken(Object principal, Object credentials, List<GrantedAuthority> authorities) {
		super(principal, credentials, authorities);
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getUserId() {
		return userId;
	}

	public void setLoggedStaff(Staff loggedStaff) {
		this.loggedStaff = loggedStaff;
	}

	public Staff getLoggedStaff() {
		return loggedStaff;
	}
}
